/* ==========================================================================
   AEPCAR
   Folha de estilo principal - reescrita em 26/08/2026
   ========================================================================== */

:root {
	/* Ceu: do alto claro ao horizonte mais denso */
	--ceu-alto:   #e8f1f8;
	--ceu-baixo:  #b9d0e4;

	--tinta:      #1d2b33;   /* texto */
	--tinta-fraca:#5c7080;   /* legendas, datas, apoio */

	--petrol:     #2C88A7;   /* a cor historica do site */
	--petrol-esc: #17627a;   /* mesma cor, mais escura, para hover e contraste */
	--oliva:      #7E9F19;   /* o verde dos detalhes */

	--papel:      #ffffff;
	--borda:      #dce6ed;

	--sombra:     0 1px 2px rgba(29,43,51,.06), 0 4px 16px rgba(29,43,51,.08);
	--raio:       10px;

	--largura:    1180px;
	--respiro:    clamp(1rem, 3vw, 2rem);

	--serifada:   Georgia, 'Times New Roman', Times, serif;
	--sem-serifa: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
	              'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: linear-gradient(to bottom, var(--ceu-alto), var(--ceu-baixo) 420px)
	            no-repeat var(--ceu-baixo);
	color: var(--tinta);
	font-family: var(--sem-serifa);
	font-size: 17px;
	line-height: 1.65;
	-webkit-text-size-adjust: 100%;
}
hr {
	margin-left: -50;
	margin-right: -50;
	size: 10px;
}
.calendario table {
	width: 100%;
	border: 1;
}
.calendario table {
	border: 1;
}

img { max-width: 100%; height: auto; }

a { color: var(--petrol); }
a:hover, a:focus { color: #17627a; }

/* Foco visivel para quem navega por teclado */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, label:focus-visible {
	outline: 3px solid var(--petrol);
	outline-offset: 2px;
}

/* Atalho para quem navega por teclado: fica escondido ate receber foco */
.pular {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--petrol);
	color: #fff;
	padding: .7rem 1.2rem;
	border-radius: 0 0 var(--raio) 0;
	text-decoration: none;
}

.pular:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   Estrutura
   -------------------------------------------------------------------------- */

.conteiner {
	width: min(var(--largura), 100% - 2 * var(--respiro));
	margin-inline: auto;
}

main.conteiner { padding-block: clamp(1.5rem, 4vw, 2.5rem); }

/* --------------------------------------------------------------------------
   Cabecalho e menu
   -------------------------------------------------------------------------- */

.cabecalho {
	background: var(--papel);
	border-bottom: 3px solid var(--oliva);
	box-shadow: var(--sombra);
	position: sticky;
	top: 0;
	z-index: 50;
}

.cabecalho-interno {
	width: min(var(--largura), 100% - 2 * var(--respiro));
	margin-inline: auto;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-block: .6rem;
}

/* O logo antigo era um retangulo azul chapado, que brigava com o cabecalho
   branco. O medalhao foi recortado dele; o resto virou tipografia. */
.marca {
	display: flex;
	align-items: center;
	gap: .8rem;
	flex: 0 0 auto;
	text-decoration: none;
	color: inherit;
}

.marca-retrato {
/* 
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--oliva);
	box-shadow: 0 1px 4px rgba(29,43,51,.25);
	flex: 0 0 auto;
*/

	width: 10%;
	/* height: 52px; */
	border-radius: 0%;
	object-fit: cover;
	/* border: 2px solid var(--oliva);
	box-shadow: 0 1px 4px rgba(29,43,51,.25); */
	flex: 0 0 auto;
}

.marca-nome {
	font-family: var(--serifada);
	font-size: clamp(1rem, 2.4vw, 1.3rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--petrol);
	letter-spacing: -.01em;
}

/* O lema "Um pouco de um brasileiro..." nao cabe aqui: com ele o conjunto vai
   a 379px e, somado aos 849px dos oito itens do menu, estoura os 1180px do
   conteiner em qualquer tela. Ele vive no rodape. */

@media (max-width: 30rem) {
	.marca-retrato { width: 40px; height: 40px; }
	.marca-nome { font-size: .95rem; max-width: 8em; }
}

/* O interruptor do menu sanduiche: sem JavaScript, so CSS. */
.menu-check { position: absolute; left: -9999px; }

.menu-botao {
	display: none;                 /* aparece so no celular */
	margin-left: auto;
	padding: .55rem .9rem;
	border: 1px solid var(--borda);
	border-radius: var(--raio);
	background: var(--papel);
	color: var(--petrol);
	font-size: .95rem;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
}

#menu { margin-left: -100px; }

#menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .15rem;
}

#menu a {
	display: block;
	padding: .4rem .5rem;
	border-radius: 6px;
	color: var(--tinta);
	text-decoration: none;
	font-size: .85rem;
	line-height: 1.3;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
}

#menu a:hover, #menu a:focus {
	background: var(--ceu-alto);
	color: var(--petrol);
	border-bottom-color: var(--petrol);
}

#menu a[aria-current="page"] {
	color: var(--petrol);
	font-weight: 700;
	border-bottom-color: var(--oliva);
}

/* --------------------------------------------------------------------------
   Blocos de conteudo
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Capa da home
   Fotografia de epoca em sepia, escurecida o bastante para o texto ficar
   legivel por cima. O gradiente vem antes da imagem na mesma propriedade.
   -------------------------------------------------------------------------- */

.capa {
	position: relative;
	border-radius: var(--raio);
	overflow: hidden;
	box-shadow: var(--sombra);
	margin-bottom: 1.5rem;
	background:
		linear-gradient(to right,
			rgba(12,38,48,.94) 0%,
			rgba(12,38,48,.82) 45%,
			rgba(12,38,48,.45) 100%),
		url('https://www.aepcar.org.br/imagens/capa.jpg') center 38% / cover no-repeat;
}

.capa-texto {
	padding: clamp(2rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 3.5rem);
	max-width: 46rem;
	color: #f2f7fa;
}

.capa-sobretitulo {
	font-size: .8rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #9fd3e6;
	margin: 0 0 .6rem;
}

.capa h1 {
	font-family: var(--serifada);
	font-size: clamp(1.9rem, 5.5vw, 3.2rem);
	line-height: 1.1;
	margin: 0;
	color: #fff;
	letter-spacing: -.02em;
	text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.capa-lema {
	font-family: var(--serifada);
	font-style: italic;
	font-size: clamp(1.1rem, 2.6vw, 1.5rem);
	color: #9fd3e6;
	margin: .5rem 0 1.2rem;
}

.capa-descricao {
	margin: 0;
	max-width: 54ch;
	color: #dbe9f0;
}

/* A mensagem de abertura da home */
.mensagem {
	background: var(--papel);
	border-radius: var(--raio);
	box-shadow: var(--sombra);
	border-left: 5px solid var(--oliva);
	padding: clamp(1.2rem, 3vw, 2rem);
	margin-bottom: 1.5rem;
}

.mensagem p { text-align: center; margin: 0 0 1rem; }
.mensagem p:last-child { margin-bottom: 0; }
.mensagem strong { font-family: var(--serifada); font-size: 1.05em; }
.mensagem hr { display: none; }

/* Home: coluna de posts + coluna lateral */
.places {
	display: grid;
	grid-template-columns: minmax(3fr, 1fr);
	gap: 1.5rem;
	/* ------------------------------------------- */
		align-items: flex-start;
	/* ------------------------------------------- */
}

.place, .conteudo {
	background: var(--papel);
	border: 1px solid var(--borda);
	border-radius: var(--raio);
	box-shadow: var(--sombra);
	padding: clamp(1.2rem, 3vw, 2rem);
	overflow-wrap: break-word;
}

/* Cartao com link levanta de leve ao passar o cursor - sinaliza que e clicavel
   sem precisar de um botao "leia mais" gritando. */
.place:has(h2 a) { transition: transform .18s ease, box-shadow .18s ease; }

.place:has(h2 a):hover {
	transform: translateY(-3px);
	box-shadow: 0 2px 4px rgba(29,43,51,.08), 0 12px 28px rgba(29,43,51,.14);
}

.place h2, .conteudo h1 {
	font-family: var(--serifada);
	color: var(--petrol);
	margin: 0 0 1rem;
	line-height: 1.25;
	letter-spacing: -.01em;
}

.place h2 {
	font-size: clamp(1.25rem, 2.6vw, 1.6rem);
	padding-bottom: .6rem;
	border-bottom: 2px solid var(--oliva);
}

.place h2 a { color: inherit; text-decoration: none; }
.place h2 a:hover { text-decoration: underline; }

/* A foto do post: ao lado do texto no desktop, acima dele no celular */
.place img {
	float: left;
	width: 200px;
	margin: .25rem 1.25rem .75rem 0;
	border-radius: 6px;
	border: 1px solid var(--borda);
	padding: 3px;
	background: var(--papel);
}

.place p { margin: 0 0 1rem; }
.place p:last-child { margin-bottom: 0; }

/* Listas ao lado da foto flutuante: o overflow cria um bloco proprio, senao
   os marcadores caem atras da imagem e os itens saem desalinhados. */
.place ul {
	overflow: hidden;
	margin: 0 0 1rem;
	padding-left: 1.2rem;
}

.place li { margin-bottom: .25rem; }

.sidenote h3 {
	font-family: var(--serifada);
	font-size: 1.15rem;
	color: var(--petrol);
	margin: 0 0 .5rem;
	padding-bottom: .5rem;
	border-bottom: 2px solid var(--oliva);
}

/* Coluna lateral (o menu repetido da home) */
.sidenote {
	background: var(--papel);
	border: 1px solid var(--borda);
	border-radius: var(--raio);
	box-shadow: var(--sombra);
	padding: 1.25rem;
	align-self: start;

/* -- ------------------------------------- */
align-items: flex-start;
/* -- ------------------------------------- */

}

.sidenote ul { list-style: none; margin: 0; padding: 0; }

.sidenote li + li { border-top: 1px solid var(--borda); }

.sidenote a {
	display: block;
	padding: .6rem .25rem;
	text-decoration: none;
	font-size: .98rem;
}

.sidenote a:hover { color: #17627a; padding-left: .6rem; transition: padding .15s; }

/* --------------------------------------------------------------------------
   Paginas de conteudo corrido (patrimonio, curriculum, informativo, quem somos)
   -------------------------------------------------------------------------- */

.conteudo h1 {
	font-size: clamp(1.6rem, 4vw, 2.3rem);
	text-align: center;
	margin-bottom: 1.6rem;
}

/* Filete curto sob o titulo da pagina, no lugar de uma linha de ponta a ponta */
.conteudo > h1:first-child::after {
	content: '';
	display: block;
	width: 4rem;
	height: 3px;
	margin: .9rem auto 0;
	background: var(--oliva);
	border-radius: 2px;
}

.conteudo > h1:first-child { margin-top: 0; }

/* O primeiro h1 e o titulo da pagina. Os seguintes vieram do conteudo antigo
   (no patrimonio, sao os continentes) e funcionam como divisores de secao. */
.conteudo h1:not(:first-of-type) {
	text-align: left;
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	color: var(--tinta);
	border-bottom: 3px solid var(--oliva);
	padding-bottom: .4rem;
	margin-top: 3rem;
}

.conteudo .subtitulo {
	text-align: center;
	color: var(--tinta-fraca);
	max-width: 60ch;
	margin: 0 auto 2rem;
}

.conteudo h2, .conteudo h3, .conteudo h4, .conteudo h5 {
	font-family: var(--serifada);
	color: var(--tinta);
	line-height: 1.3;
	margin: 2rem 0 .6rem;
}

.conteudo h2 {
	font-size: clamp(1.3rem, 3vw, 1.75rem);
	color: var(--petrol);
	border-bottom: 1px solid var(--borda);
	padding-bottom: .4rem;
}

.conteudo h3 { font-size: 1.3rem; }

.conteudo h4 {
	font-size: 1.12rem;
	color: var(--oliva);
	text-transform: uppercase;
	letter-spacing: .04em;
}

.conteudo h5 {
	font-size: 1.05rem;
	font-family: var(--sem-serifa);
	color: var(--petrol);
	margin-top: 2.2rem;
}

/* Linha de leitura: acima de ~75 caracteres o olho perde a linha seguinte.
   Vale para o texto corrido; titulos e tabelas seguem usando a largura toda. */
.conteudo p,
.conteudo ul,
.conteudo ol { max-width: 75ch; }

.conteudo p { margin: 0 0 1rem; }

.conteudo hr {
	border: 0;
	border-top: 1px solid var(--borda);
	margin: 2rem 0;
}

/* Fotos historicas ganham moldura de copia antiga: passe-partout branco,
   filete fino e sombra baixa. */
.conteudo figure { margin: 0 0 3rem; text-align: center; }

.conteudo figure img {
	background: var(--papel);
	padding: 10px;
	border: 1px solid var(--borda);
	border-radius: 3px;
	box-shadow: 0 2px 6px rgba(29,43,51,.10), 0 10px 28px rgba(29,43,51,.10);
	max-width: min(100%, 680px);
}

.conteudo figcaption {
	color: var(--tinta-fraca);
	font-size: .95rem;
	max-width: 62ch;
	margin: 1rem auto 0;
	text-align: left;
	border-left: 3px solid var(--borda);
	padding-left: 1rem;
}

/* Titulo dentro da figura: e legenda, nao secao */
.conteudo figure h2 {
	font-size: clamp(1.05rem, 2.2vw, 1.3rem);
	border: 0;
	color: var(--tinta);
	max-width: 55ch;
	margin: 0 auto 1.2rem;
}

/* --------------------------------------------------------------------------
   Tabela de efemerides (asd_comemoracoes.php)
   -------------------------------------------------------------------------- */

.agenda table {
	width: 100%;
	border-collapse: collapse;
	font-size: .97rem;
}

.agenda td {
	border: 0;
	border-bottom: 1px solid var(--borda);
	padding: .7rem .6rem;
	vertical-align: top;
}

/* A primeira coluna e a data; a segunda, o fato */
.agenda td:first-child {
	white-space: nowrap;
	color: var(--tinta-fraca);
	font-variant-numeric: tabular-nums;
	width: 1%;
}

/* Linhas de mes: uma so celula preenchida, em destaque */
.agenda td strong {
	display: block;
	font-family: var(--serifada);
	font-size: 1.15rem;
	color: var(--petrol);
	padding-top: 1rem;
}

.agenda tr:hover td { background: var(--ceu-alto); }

/* --------------------------------------------------------------------------
   Formulario de contato
   -------------------------------------------------------------------------- */

.formulario { max-width: 660px; margin-inline: auto; }

.formulario label { display: block; font-weight: 600; margin-bottom: .35rem; }
.formulario .opcional { font-weight: 400; color: var(--tinta-fraca); }

.formulario input[type="text"],
.formulario input[type="email"],
.formulario textarea {
	width: 100%;
	padding: .7rem .8rem;
	border: 1px solid var(--borda);
	border-radius: 8px;
	font-family: inherit;
	font-size: 1rem;
	background: #fbfdfe;
}

.formulario input:focus, .formulario textarea:focus {
	border-color: var(--petrol);
	background: var(--papel);
}

.formulario textarea { resize: vertical; min-height: 10rem; }

.formulario input[type="submit"],
.formulario input[type="reset"] {
	padding: .7rem 1.6rem;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
}

.formulario input[type="submit"] {
	background: var(--petrol);
	border: 1px solid var(--petrol);
	color: #fff;
}

.formulario input[type="submit"]:hover { background: #17627a; }

.formulario input[type="reset"] {
	background: var(--papel);
	border: 1px solid var(--borda);
	color: var(--tinta-fraca);
}

.formulario .aviso-ok {
	background: #eaf6ec;
	border-left: 4px solid #4C9A2A;
	border-radius: 6px;
	padding: .9rem 1rem;
}

.formulario .aviso-erro {
	background: #fdecea;
	border-left: 4px solid #C0392B;
	border-radius: 6px;
	padding: .9rem 1rem;
}

.formulario .aviso-erro ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* A isca anti-spam sai da tela por posicao, nao por display:none - alguns
   robos ignoram justamente os campos com display:none. */
.formulario .isca { position: absolute; left: -9999px; }

/* --------------------------------------------------------------------------
   Rodape
   -------------------------------------------------------------------------- */

.rodape, .rodapé {
	background: #16404f;
	color: #c9dde6;
	margin-top: 3rem;
	padding-block: 2.5rem;
	font-size: .92rem;
	text-align: center;
	border-top: 4px solid var(--oliva);
}

/* Filete curto acima do lema, como fecho */
.rodape-lema::before {
	content: '';
	display: block;
	width: 3rem;
	height: 2px;
	margin: 0 auto 1.2rem;
	background: rgba(143,208,228,.45);
}

.rodape a, .rodapé a { color: #8fd0e4; }

.rodape hr, .rodapé hr { display: none; }

.rodape p, .rodapé p { margin: 0 0 .4rem; }

.rodape-lema {
	font-family: var(--serifada);
	font-style: italic;
	color: #8fd0e4;
	margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Telas menores
   -------------------------------------------------------------------------- */

/* Duas colunas na home a partir do tablet grande */
@media (min-width: 62rem) {
	.places {
		grid-template-columns: minmax(0, 1fr) 20rem;
		grid-auto-flow: dense;
	}
	.sidenote { grid-column: 2; grid-row: 1 / span 20; }
	.places > .place { grid-column: 1; }
}

/* Menu sanduiche.
   O corte e 70rem porque e ai que a barra horizontal para de caber: a marca
   ocupa ~312px e os oito itens somam ~732px, entao o conteiner precisa de
   uns 1060px uteis. Abaixo disso o menu quebrava em duas linhas. */
@media (max-width: 70rem) {
	.menu-botao { display: block; }

	#menu {
		display: none;
		flex-basis: 100%;
		margin-left: 0;
		padding-bottom: .6rem;
	}

	.menu-check:checked ~ #menu { display: block; }

	.cabecalho-interno { flex-wrap: wrap; }

	#menu ul { flex-direction: column; gap: 0; }

	#menu li + li { border-top: 1px solid var(--borda); }

	#menu a { padding: .7rem .5rem; font-size: 1rem; border-bottom: 0; }
}

@media (max-width: 40rem) {
	body { font-size: 16px; }

	/* No celular a foto do post ocupa a largura toda, em cima do texto */
	.place img {
		float: none;
		width: 100%;
		margin: 0 0 1rem;
	}

	/* A tabela de efemerides vira uma lista de blocos */
	.agenda td { display: block; border-bottom: 0; padding: .15rem .4rem; }
	.agenda td:first-child { width: auto; padding-top: .8rem; font-weight: 600; }
	.agenda tr { display: block; border-bottom: 1px solid var(--borda); padding: .4rem 0; }
	.agenda tr:hover td { background: transparent; }
}

/* Impressao: sem menu, sem fundo, tinta preta */
@media print {
	.cabecalho, .sidenote, .rodape, .rodapé { display: none; }
	body { background: #fff; color: #000; font-size: 12pt; }
	.place, .conteudo { box-shadow: none; border: 0; padding: 0; }
}
/* Configuração do calendário */
	.calendario  table {
    border: 1;
    width: 100%;
    table-layout: fixed; /* Força a tabela a seguir as larguras definidas */
  }
  
  .calendario td {
  	text-align: center;
   text-overflow: ellipsis;
   font-size: .8em;

 }
  
.calendario th {
  	text-align: center;
   text-overflow: ellipsis;
   font-size: .8em;

 }
  
	